﻿using MainScene;
using NodeEditorFramework;
using Sirenix.OdinInspector;
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;



public class TestSaveOdinScript : MonoBehaviour {

    [Button("SaveOdinSeriScript")]
    public void SaveReset()
    {
        var script = ScriptableObject.CreateInstance<LevelMapNodeCanvas>();
        //script..events = new SceneEventData();
        //script.events.m_condition_data_list.Add(new MainScene.Evt.Condition.OnAreaTriggerMutliConditionData() { areaId = "sss" });
        //script.events.m_content_data_list.Add(new MainScene.Evt.Command.ChangeCameraTargetCommandData() { unitName = "sfsss" });
        AssetDatabase.CreateAsset(script, "Assets/TestOdinAsset.asset");
    }
    [Button("LoadAssetOdinSeriScript")]
    public void LoadAsset()
    {
        var script = AssetDatabase.LoadAssetAtPath<LevelMapNodeCanvas>("Assets/TestOdinAsset.asset");
        Debug.Log("''");
    }
}
